package com.nit.lab.service.basic;

import com.nit.lab.dto.basic.UserDTO;
import com.nit.lab.dto.utils.TableReqDTO;
import com.nit.lab.dto.utils.TableRspDTO;


public interface UserService {
    /**
     * @Description: 获取表格数据
     * @Author: SN
     * @Date: 2019/01/31 11:02
     */
    TableRspDTO list4Table(TableReqDTO tableReqDTO) throws Exception;

    /**
     * @Description: 新增记录
     * @Author: SN
     * @Date: 2019/01/31 11:02
     */
    Integer add(UserDTO userDTO) throws Exception;

    /**
     * @Description: 更新记录
     * @Author: SN
     * @Date: 2019/01/31 11:02
     */
    Integer update(UserDTO userDTO) throws Exception;

    /**
     * @Description: 删除记录
     * @Author: SN
     * @Date: 2019/01/31 11:02
     */
    Integer remove(String userIds) throws Exception;

    /**
     * @Description: 重置用户密码
     * @Author: SN
     * @Date: 2019/01/31 11:02
     */
    Integer resetPwd(Long userId, String loginPwd) throws Exception;

    /**
     * @Description: 登录验证
     * @Author: SN
     * @Date: 2019/01/30 18:15
     */
    UserDTO loginCheck(String loginName) throws Exception;

    /**
     * @Description: 根据UserId获取用户信息
     * @Author: SN
     * @Date: 2019/01/30 18:15
     */
    UserDTO getByUserId(Long userId) throws Exception;
}
